<?php
session_start();
/**
* @package		ReservatieComponent voor ouderavonden van Atheneum Alicebourg Lanaken.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		1.0
* @license		GNU/GPL, see LICENSE.php
**/
include ("../../include/header.php");
?>

<head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>
<body>
<div align="center">
  <p><img src="<?php echo "../$logo" ; ?>" /></p>
  <p>&nbsp;</p>
  <p><a href="date.php"><img src="../../images/home.png"  border="0"></a> </p>
</div>
<p>
  <?php 

include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {


$id = $_GET['id'];

$sqldelete = "DELETE FROM $tbdate WHERE ID='$id'";
mysql_query($sqldelete) or die(mysql_error());
echo " <div align='center'>De datum is verwijderd <br />
</div>";
}}
?>
